<%= render  :partial => "apo/navigation" %>

<div id="containerBody">
	<% form_tag :action => "submit_attendee_hours" , :member_id => params[:member_id], :event_id => @event do %>
		<h2>Update Event Hours For "<%=h @member.full_name %>"</h2>
		<h3>Scheduled Event Hours: <%=h @event.hours %></h3>
		<p>
			Please enter the hour discrepancy between the event and the member.<br>
			For example, if the event hours were 3 and the person only worked 2.75, enter "-.25"<br>
			<b>Note: The number in the text field represents the hour adjustment that the user already has for this event.</b>
		</p>
		<%@record = AttendanceRecord.find(:all, :conditions => {:event_id => @event, :member_id => @member})[0]%>
		Hour Adjustment: <%= text_field_tag "adjustment_hours" , @record.adjustment_hours %>
		<br><br>
		<%= submit_tag "Submit" %>
	<% end %>
</div>
